/**
 * 
 */
package Offer;

import Player.Player;

/**
 * @author Avia Tam
 * @author Assaf Miron
 *
 */
public class Money_offer extends Offer {
	private Double money_offer;

	/**
	 * @param offer_player
	 * @param money_offer
	 */
	public Money_offer(Player offer_player, Double money_offer) {
		super(offer_player);
		this.money_offer = money_offer;
	}
	
	//returns the money offered by the player
	public Double getMoneyOffer(){
		return money_offer;
	}
	
	@Override
	public String toString() 
	{
		return money_offer + " (" + getPlayer().getName() + ")";
	}


	@Override
	//returns the offer type
	public OfferType getOfferType() {
		return OfferType.MONEY_OFFER;
	}
}
